package com.springtest.constructor;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class InstanceTest1 {
    public static void main (String[] args){
        String xmlPath = "beans1.xml";
//        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("beans1.xml");
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("beans1.xml");
        Bean1 bean1=(Bean1) applicationContext.getBean("bean1");
        System.out.println(bean1);
    }
}
